import { Vector } from "../../../../../__AS3__/vec/Vector";
//class CallSprite
    
    export  class CallSprite /* flash.display.Sprite */
    {
        constructor()
        {
            
            this._callVector = new Vector.<Function>();
            return;
        }

        public addCall(arg1: Function): void
        {
            this._callVector.push(arg1);
            return;
        }

        public removeCall(arg1: Function): void
        {
            if (this._callVector.indexOf(arg1) >= 0) 
            {
                this._callVector.splice(this._callVector.indexOf(arg1), 1);
            }
            return;
        }

        public removeAllCall(): void
        {
            this._callVector = new Vector.<Function>();
            return;
        }

        protected callAll(arg1: Object): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=this._callVector;
            for(loc1 of loc3) 
            {
                loc1.call(null, arg1);
            }
            return;
        }

        protected /* var */_callVector: Vector.<Function>;
    }
